package com.frinder.demo9;

import akka.actor.UntypedActor;
import akka.event.Logging;
import akka.event.LoggingAdapter;

/**
 * Created by frinder on 2017/7/25.
 */
public class EventHandler extends UntypedActor {

    LoggingAdapter logger = Logging.getLogger(getContext().system(), this);

    @Override
    public void onReceive(Object o) throws Exception {
        logger.info("Handled Event: {}", o);
    }
}
